package org.jiajie.coffeecodes.concurrent.pattern.copy.on.write;

/**
 * 路由信息
 *
 * @author jay
 */
public class Router {
    private final String ip;
    private final Integer port;
    private final String iface;

    /**
     * 构造函数
     * @param ip    ip
     * @param port  port
     * @param iface iface
     */
    public Router(String ip, Integer port, String iface) {
        this.ip = ip;
        this.port = port;
        this.iface = iface;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    public String getIface() {
        return iface;
    }
}
